import AutoImport from 'unplugin-auto-import/vite';
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';


export default (path : any) => {
    return AutoImport(
        {
            imports: ['vue' , "pinia" ,"vue-router" , "@vueuse/core"],
            resolvers:[ ElementPlusResolver() ],
            vueTemplate:true , // 是否在 vue 中模版中自动导入
            dts: path.resolve(path.resolve(__dirname, '../../src'), 'types', 'auto-imports.d.ts')
        },
    )
}

